package com.ddtech.business.train.entity;

import com.ddtech.models.AbstractModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TrainPlanUser对象", description="计划培训用户部门")
public class TrainPlanUser extends AbstractModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "培训计划id")
    private String planId;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "是否完成")
    private Integer isFinish;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "完成时间")
    private LocalDateTime finishTime;

    @ApiModelProperty(value = "完成进度")
    private Double finishPercent;

    public static final String PLAN_ID="plan_id";
    public static final String USER_ID="user_id";
}
